import request from "@/utils/request";

let gameListApi = {
  //
  getGameList(data) {
    return request({
      url: "/game/info/list",
      method: "get",
      params: data,
    });
  },
  // dange
  getGameDetail(id) {
    return request({
      url: `/game/info/${id}`,
      method: "get",
    });
  },
  // xinzeng
  addGame(data) {
    return request({
      url: "/game/info",
      method: "post",
      data,
    });
  },
  //
  editGame(data) {
    return request({
      url: "/game/info",
      method: "put",
      data,
    });
  },
  // 删除
  delGame(ids) {
    return request({
      url: `/game/info/${ids} `,
      method: "delete",
    });
  },
  //获取数据
  getthreeList(accountId) {
    return request({
      url: `/art/rec/list?accountId=${accountId}`,
      method: "get",
    });
  },
  // 修改三方Id
  editthreeId(data) {
    return request({
      url: `/art/rec`,
      method: "put",
      data,
    });
  },
  // 新增三方Id
  addfnthreeId(data) {
    return request({
      url: `/art/rec`,
      method: "post",
      data,
    });
  },
  // 获取三方Id
  getthreeId() {
    return request({
      url: `/partner/partner/allList?saleName=JYM`,
      method: "get",
    });
  },
  // 游戏运营商 列表
  getGameYunyingshangList(data) {
    return request({
      url: "/gameCarrier/list",
      method: "get",
      params: data,
    });
  },
  // 查询 游戏运营商
  getGameYunyingshangById(id) {
    return request({
      url: `/gameCarrier/${id}`,
      method: "get",
    });
  },
  // xinzeng 游戏运营商
  addGameYunyingshang(data) {
    return request({
      url: "/gameCarrier",
      method: "post",
      data,
    });
  },
  // 游戏运营商 编辑
  editGameYunyingshang(data) {
    return request({
      url: "/gameCarrier",
      method: "put",
      data,
    });
  },
  // 删除 游戏运营商
  delGameYunyingshang(ids) {
    return request({
      url: `/gameCarrier/${ids} `,
      method: "delete",
    });
  },

  // 运营商绑定号码
  // 游戏运营商 绑定号码 列表
  getGameCarrierNumberList(data) {
    return request({
      url: "/gameCarrierNumber/list",
      method: "get",
      params: data,
    });
  },
  // 运营商绑定号码  新增
  addGameCarrierNumber(data) {
    return request({
      url: "/gameCarrierNumber",
      method: "post",
      data,
    });
  },
  // 运营商绑定号码 编辑
  editGameCarrierNumber(data) {
    return request({
      url: "/gameCarrierNumber",
      method: "put",
      data,
    });
  },
  // 删除 运营商绑定号码
  delGameCarrierNumber(ids) {
    return request({
      url: `/gameCarrierNumber/${ids} `,
      method: "delete",
    });
  },
};
export default gameListApi;
